{"ast":null,"code":"// deps-lint-skip-all\nimport { Keyframes } from '@ant-design/cssinjs';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nconst genMessageStyle = token => {\n  const {\n    componentCls,\n    iconCls,\n    boxShadowSecondary,\n    colorBgElevated,\n    colorSuccess,\n    colorError,\n    colorWarning,\n    colorInfo,\n    fontSizeLG,\n    motionEaseInOutCirc,\n    motionDurationSlow,\n    marginXS,\n    paddingXS,\n    borderRadiusLG,\n    zIndexPopup,\n    // Custom token\n    messageNoticeContentPadding\n  } = token;\n  const messageMoveIn = new Keyframes('MessageMoveIn', {\n    '0%': {\n      padding: 0,\n      transform: 'translateY(-100%)',\n      opacity: 0\n    },\n    '100%': {\n      padding: paddingXS,\n      transform: 'translateY(0)',\n      opacity: 1\n    }\n  });\n  const messageMoveOut = new Keyframes('MessageMoveOut', {\n    '0%': {\n      maxHeight: token.height,\n      padding: paddingXS,\n      opacity: 1\n    },\n    '100%': {\n      maxHeight: 0,\n      padding: 0,\n      opacity: 0\n    }\n  });\n  return [\n  // ============================ Holder ============================\n  {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'fixed',\n      top: marginXS,\n      width: '100%',\n      pointerEvents: 'none',\n      zIndex: zIndexPopup,\n      [`${componentCls}-move-up`]: {\n        animationFillMode: 'forwards'\n      },\n      [`\n        ${componentCls}-move-up-appear,\n        ${componentCls}-move-up-enter\n      `]: {\n        animationName: messageMoveIn,\n        animationDuration: motionDurationSlow,\n        animationPlayState: 'paused',\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`\n        ${componentCls}-move-up-appear${componentCls}-move-up-appear-active,\n        ${componentCls}-move-up-enter${componentCls}-move-up-enter-active\n      `]: {\n        animationPlayState: 'running'\n      },\n      [`${componentCls}-move-up-leave`]: {\n        animationName: messageMoveOut,\n        animationDuration: motionDurationSlow,\n        animationPlayState: 'paused',\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`${componentCls}-move-up-leave${componentCls}-move-up-leave-active`]: {\n        animationPlayState: 'running'\n      },\n      '&-rtl': {\n        direction: 'rtl',\n        span: {\n          direction: 'rtl'\n        }\n      }\n    })\n  },\n  // ============================ Notice ============================\n  {\n    [`${componentCls}-notice`]: {\n      padding: paddingXS,\n      textAlign: 'center',\n      [iconCls]: {\n        verticalAlign: 'text-bottom',\n        marginInlineEnd: marginXS,\n        fontSize: fontSizeLG\n      },\n      [`${componentCls}-notice-content`]: {\n        display: 'inline-block',\n        padding: messageNoticeContentPadding,\n        background: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        boxShadow: boxShadowSecondary,\n        pointerEvents: 'all'\n      },\n      [`${componentCls}-success ${iconCls}`]: {\n        color: colorSuccess\n      },\n      [`${componentCls}-error ${iconCls}`]: {\n        color: colorError\n      },\n      [`${componentCls}-warning ${iconCls}`]: {\n        color: colorWarning\n      },\n      [`\n        ${componentCls}-info ${iconCls},\n        ${componentCls}-loading ${iconCls}`]: {\n        color: colorInfo\n      }\n    }\n  },\n  // ============================= Pure =============================\n  {\n    [`${componentCls}-notice-pure-panel`]: {\n      padding: 0,\n      textAlign: 'start'\n    }\n  }];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Message', token => {\n  // Gen-style functions here\n  const combinedToken = mergeToken(token, {\n    messageNoticeContentPadding: `${(token.controlHeightLG - token.fontSize * token.lineHeight) / 2}px ${token.paddingSM}px`\n  });\n  return [genMessageStyle(combinedToken)];\n}, token => ({\n  height: 150,\n  zIndexPopup: token.zIndexPopupBase + 10\n}));","map":{"version":3,"names":["Keyframes","genComponentStyleHook","mergeToken","resetComponent","genMessageStyle","token","componentCls","iconCls","boxShadowSecondary","colorBgElevated","colorSuccess","colorError","colorWarning","colorInfo","fontSizeLG","motionEaseInOutCirc","motionDurationSlow","marginXS","paddingXS","borderRadiusLG","zIndexPopup","messageNoticeContentPadding","messageMoveIn","padding","transform","opacity","messageMoveOut","maxHeight","height","Object","assign","position","top","width","pointerEvents","zIndex","animationFillMode","animationName","animationDuration","animationPlayState","animationTimingFunction","direction","span","textAlign","verticalAlign","marginInlineEnd","fontSize","display","background","borderRadius","boxShadow","color","combinedToken","controlHeightLG","lineHeight","paddingSM","zIndexPopupBase"],"sources":["/data/messenger.client/node_modules/antd/es/message/style/index.js"],"sourcesContent":["// deps-lint-skip-all\nimport { Keyframes } from '@ant-design/cssinjs';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nconst genMessageStyle = token => {\n  const {\n    componentCls,\n    iconCls,\n    boxShadowSecondary,\n    colorBgElevated,\n    colorSuccess,\n    colorError,\n    colorWarning,\n    colorInfo,\n    fontSizeLG,\n    motionEaseInOutCirc,\n    motionDurationSlow,\n    marginXS,\n    paddingXS,\n    borderRadiusLG,\n    zIndexPopup,\n    // Custom token\n    messageNoticeContentPadding\n  } = token;\n  const messageMoveIn = new Keyframes('MessageMoveIn', {\n    '0%': {\n      padding: 0,\n      transform: 'translateY(-100%)',\n      opacity: 0\n    },\n    '100%': {\n      padding: paddingXS,\n      transform: 'translateY(0)',\n      opacity: 1\n    }\n  });\n  const messageMoveOut = new Keyframes('MessageMoveOut', {\n    '0%': {\n      maxHeight: token.height,\n      padding: paddingXS,\n      opacity: 1\n    },\n    '100%': {\n      maxHeight: 0,\n      padding: 0,\n      opacity: 0\n    }\n  });\n  return [\n  // ============================ Holder ============================\n  {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'fixed',\n      top: marginXS,\n      width: '100%',\n      pointerEvents: 'none',\n      zIndex: zIndexPopup,\n      [`${componentCls}-move-up`]: {\n        animationFillMode: 'forwards'\n      },\n      [`\n        ${componentCls}-move-up-appear,\n        ${componentCls}-move-up-enter\n      `]: {\n        animationName: messageMoveIn,\n        animationDuration: motionDurationSlow,\n        animationPlayState: 'paused',\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`\n        ${componentCls}-move-up-appear${componentCls}-move-up-appear-active,\n        ${componentCls}-move-up-enter${componentCls}-move-up-enter-active\n      `]: {\n        animationPlayState: 'running'\n      },\n      [`${componentCls}-move-up-leave`]: {\n        animationName: messageMoveOut,\n        animationDuration: motionDurationSlow,\n        animationPlayState: 'paused',\n        animationTimingFunction: motionEaseInOutCirc\n      },\n      [`${componentCls}-move-up-leave${componentCls}-move-up-leave-active`]: {\n        animationPlayState: 'running'\n      },\n      '&-rtl': {\n        direction: 'rtl',\n        span: {\n          direction: 'rtl'\n        }\n      }\n    })\n  },\n  // ============================ Notice ============================\n  {\n    [`${componentCls}-notice`]: {\n      padding: paddingXS,\n      textAlign: 'center',\n      [iconCls]: {\n        verticalAlign: 'text-bottom',\n        marginInlineEnd: marginXS,\n        fontSize: fontSizeLG\n      },\n      [`${componentCls}-notice-content`]: {\n        display: 'inline-block',\n        padding: messageNoticeContentPadding,\n        background: colorBgElevated,\n        borderRadius: borderRadiusLG,\n        boxShadow: boxShadowSecondary,\n        pointerEvents: 'all'\n      },\n      [`${componentCls}-success ${iconCls}`]: {\n        color: colorSuccess\n      },\n      [`${componentCls}-error ${iconCls}`]: {\n        color: colorError\n      },\n      [`${componentCls}-warning ${iconCls}`]: {\n        color: colorWarning\n      },\n      [`\n        ${componentCls}-info ${iconCls},\n        ${componentCls}-loading ${iconCls}`]: {\n        color: colorInfo\n      }\n    }\n  },\n  // ============================= Pure =============================\n  {\n    [`${componentCls}-notice-pure-panel`]: {\n      padding: 0,\n      textAlign: 'start'\n    }\n  }];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Message', token => {\n  // Gen-style functions here\n  const combinedToken = mergeToken(token, {\n    messageNoticeContentPadding: `${(token.controlHeightLG - token.fontSize * token.lineHeight) / 2}px ${token.paddingSM}px`\n  });\n  return [genMessageStyle(combinedToken)];\n}, token => ({\n  height: 150,\n  zIndexPopup: token.zIndexPopupBase + 10\n}));"],"mappings":"AAAA;AACA,SAASA,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,qBAAqB,EAAEC,UAAU,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